<div ng-include="sys_html('common/_header')"></div>
<div class="fui-page fui-page-current page-goods-list">
<div class='fui-content navbar' style="top:0">
<div class="fui-header searchtop">
		<div class="fui-header-left">
			<img class="leftlogo" ng-src="{{tomedia(pagedata.setting.logo) || '../core/resource/images/nopic.jpg'}}"/>
		</div>
		<div class="title">
			<form method="post">
					<div class="searchbar searchbar-active" style="margin-left:1.6rem">
					<div class="search-input" ng-click="access_json('/search//searchstart=1')">
						<i class="icon jinyunicon icon-search" style="font-size: 0.8rem;"></i>
						<input type="search " id="search" placeholder="输入关键字..." value="" readonly>
					</div>
					</div>
			</form>
		</div>
		<div class="fui-header-right" data-nomenu="true">
			<a href="javascript:;"><i class="icon jinyunicon icon-saoyisao2" id="scancode" style="font-size: 1.0rem;"></i></a>
		</div>
</div>
<script language="javascript">
wx.ready(function () {
	$("#scancode").on('click',function () {
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
							//无需返回结果！					
						}
			});
	});
});
</script> 
<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true" ng-if="pagedata.setting.hdps" style="margin-top:2.2rem">
	<div class="carousel-inner" role="listbox">
		<div ng-repeat="nav in pagedata.setting.hdps" ng-class="{'item':1, 'active':$index==0}" >
			<a href="{{nav.url}}">
				<img ng-src="{{tomedia(nav.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
	</div>
	<style>
            .fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
            .fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
    </style>
	<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
		<div class="fui-swipe-bullet" ng-repeat="nav in pagedata.setting.hdps" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
	</div>
</div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
<div class="fui-picture" ng-if="pagedata.setting.banner[0]">
       <a  style="display: block; padding: {paddingtop}px {paddingleft}px;" href="{{pagedata.setting.banner[0].linkurl}}" class="ng-scope">
            <img ng-src="{{tomedia(pagedata.setting.banner[0].picurl) || '../core/resource/images/nopic.jpg'}}">
        </a>
</div>
<div class="fui-icon-group noborder col-4 {navstyle}" style="background: {background}">
	<div class="fui-icon-col ng-scope" ng-repeat="menu in pagedata.setting.bankuai1" href="{{menu.linkurl}}">
		<div class="icon"><img ng-src="{{tomedia(menu.picurl) || '../core/resource/images/nopic.jpg'}}"></div>
		<div class="text ng-binding" style="color: ">{{menu.title}}</div>
	</div>
</div>
<div class="fui-icon-group noborder col-4 {navstyle}" style="background: {background}">
	<div class="fui-icon-col ng-scope" ng-repeat="menu in pagedata.setting.bankuai2" href="{{menu.linkurl}}">
		<div class="icon"><img ng-src="{{tomedia(menu.picurl) || '../core/resource/images/nopic.jpg'}}"></div>
		<div class="text ng-binding" style="color: ">{{menu.title}}</div>
	</div>
</div>
<div class="fui-picture" ng-if="pagedata.setting.banner[1]">
       <a  style="display: block; padding: {paddingtop}px {paddingleft}px;" href="{{pagedata.setting.banner[1].linkurl}}" class="ng-scope">
            <img ng-src="{{tomedia(pagedata.setting.banner[1].picurl) || '../core/resource/images/nopic.jpg'}}">
        </a>
</div>
<div class="fui-cube" ng-if="pagedata.setting.cube.length>0">
			<img ng-if="pagedata.setting.cube.length == 1" ng-src="{{tomedia(pagedata.setting.cube[0].image)}}" href="{{pagedata.setting.cube[0].url}}" />
			<div class="fui-cube-left" ng-if="pagedata.setting.cube.length > 1">
				<img ng-src="{{tomedia(pagedata.setting.cube[0].image)}}" href="{{pagedata.setting.cube[0].url}}" />
			</div>
			<div class="fui-cube-right" ng-if="pagedata.setting.cube.length > 1">
					<img ng-if="pagedata.setting.cube.length == 2" ng-src="{{tomedia(pagedata.setting.cube[1].image)}}" href="{{pagedata.setting.cube[1].url}}" />
					<div class="fui-cube-right1" ng-if="pagedata.setting.cube.length > 2">
						<img ng-src="{{tomedia(pagedata.setting.cube[1].image)}}" href="{{pagedata.setting.cube[1].url}}" />
					</div>
					<div class="fui-cube-right2" ng-if="pagedata.setting.cube.length > 2">
							<img ng-if="pagedata.setting.cube.length == 3" ng-src="{{tomedia(pagedata.setting.cube[2].image)}}" href="{{pagedata.setting.cube[2].url}}" />
							<div class="left" ng-if="pagedata.setting.cube.length > 3">
								<img ng-src="{{tomedia(pagedata.setting.cube[2].image)}}" href="{{pagedata.setting.cube[2].url}}" />
							</div>
							<div class="right" ng-if="pagedata.setting.cube.length == 4">
								<img ng-src="{{tomedia(pagedata.setting.cube[3].image)}}" href="{{pagedata.setting.cube[3].url}}" />
							</div>
					</div>
			</div>
</div>
<div ng-repeat="item in pagedata.setting.banner" ng-if="$index>1">
<div class="fui-picture">
       <a  style="display: block; padding: {paddingtop}px {paddingleft}px;" href="{{item.linkurl}}" class="ng-scope">
            <img ng-src="{{tomedia(item.picurl) || '../core/resource/images/nopic.jog'}}">
        </a>
</div>
<div class="fui-goods-group block three">
			<div ng-repeat="g in item.goods" class="fui-goods-item">
				<a ng-click="access_json('jy_weishop/goods.detail//id='+item.id)" >
					<div class="image" style="background-image: url('{{tomedia(g.image) ||'../core/resource/images/nopic.jpg'}}')">
						<div ng-show="g.total <=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.shop.saleout)}}'); "></div>
					</div>
				</a>
				<div class="detail">
					<a href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+g.id)">
						<div class="name">
							<i ng-show="g.ispresell == 1" class="fui-tag fui-tag-danger">预售</i>
							{{g.title}}
						</div>
					</a>
					<div class="price" style="margin-top: 0.3rem" href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+g.id)">
						<span class="text">￥{{g.price}}
						</span>
					</div>
				</div>
			</div>
</div>
</div>
<div class="fui-line-title">
	<div class="text text-danger bold" style="margin-bottom: -8px;">———— *  <span style="color:#333;font-size:0.75rem">清仓商品</span> * ————</div>
</div>
	<div ng-if="pagedata.goodslist" class="fui-goods-group block border">
			<div ng-repeat="item in pagedata.goodslist" class="fui-goods-item">
				<a ng-click="access_json('jy_weishop/goods.detail//id='+item.id)" >
					<div class="image" style="background-image: url('{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}')">
						<div ng-show="item.total <=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.shop.saleout)}}'); "></div>
					</div>
				</a>
				<div class="detail">
					<a href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+item.id)">
						<div class="name">
							<i ng-show="item.ispresell == 1" class="fui-tag fui-tag-danger">预售</i>
							{{item.title}}
						</div>
					</a>
					<div class="price" style="margin-top: 0.3rem">
						<span class="text">￥{{item.price}}
						</span>
						<span class="buy">
							购买
						</span>
					</div>
				</div>
			</div>
	</div>
<!-- 留底 -->
<!-- ngIf: 1==1 --><div ng-if="1==1" style="height: 2.5rem;" class="ng-scope"></div><!-- end ngIf: 1==1 -->

</div>
</div>
</div>
<div ng-include="sys_html('common/_share')"></div>
<div ng-include="sys_html('common/_menu')"></div>
<div ng-include="sys_html('common/_footer')"></div>